public class DogTest {
    public static void main(String[] args) {
        Dog a=new Dog();
        a.name="狗";
        Dog2 c=new Dog2();
        c.name="吕洞宾";
        a.bite(c);
       Dog1 b=new Dog1();
        b.name="刺猬";
        a.bite(b);
        Dog d=new Dog();
        d.name="狗";
        a.bite(d);
    }
}
